package com.sanqi.work.mongomanager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;

import com.sanqi.work.mongodomain.WorkExcelInfo;
import com.sanqi.work.mongomanager.IWorkExcelInfoManager;

@Component
public class WorkExcelInfoManager implements IWorkExcelInfoManager {
    @Autowired
    private MongoTemplate mongoTemplate;
    
    @Override
    public boolean saveInfo(WorkExcelInfo info) {
        WorkExcelInfo workExcelInfo = this.mongoTemplate.save(info);
        return null != workExcelInfo;
    }
}
